﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for LogExtensionsTest and is intended
    ///to contain all LogExtensionsTest Unit Tests
    ///</summary>
	[TestClass()]
	public class LogExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for Debug
		///</summary>
		public void DebugTestHelper<TItem>()
		{
			List<TItem> items = null; // TODO: Initialize to an appropriate value
			List<TItem> expected = null; // TODO: Initialize to an appropriate value
			List<TItem> actual;
			actual = LogExtensions.Debug<TItem>(items);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void DebugTest()
		{
			DebugTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for Debug
		///</summary>
		public void DebugTest1Helper<TItem>()
		{
			TItem[] items = null; // TODO: Initialize to an appropriate value
			TItem[] expected = null; // TODO: Initialize to an appropriate value
			TItem[] actual;
			actual = LogExtensions.Debug<TItem>(items);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void DebugTest1()
		{
			DebugTest1Helper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for Log
		///</summary>
		[TestMethod()]
		public void LogTest()
		{
			string format = string.Empty; // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = LogExtensions.Log(format, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Log
		///</summary>
		[TestMethod()]
		public void LogTest1()
		{
			string[] formats = null; // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = LogExtensions.Log(formats, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Log
		///</summary>
		[TestMethod()]
		public void LogTest2()
		{
			List<string> formats = null; // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			List<string> expected = null; // TODO: Initialize to an appropriate value
			List<string> actual;
			actual = LogExtensions.Log(formats, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Log
		///</summary>
		[TestMethod()]
		public void LogTest3()
		{
			IEnumerable<string> formats = null; // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			IEnumerable<string> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<string> actual;
			actual = LogExtensions.Log(formats, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Log
		///</summary>
		public void LogTest4Helper<TItem>()
		{
			TItem item = default(TItem); // TODO: Initialize to an appropriate value
			object[] args = null; // TODO: Initialize to an appropriate value
			TItem expected = default(TItem); // TODO: Initialize to an appropriate value
			TItem actual;
			actual = LogExtensions.Log<TItem>(item, args);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void LogTest4()
		{
			LogTest4Helper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for Log
		///</summary>
		public void LogTest5Helper<TItem>()
		{
			TItem item = default(TItem); // TODO: Initialize to an appropriate value
			TItem expected = default(TItem); // TODO: Initialize to an appropriate value
			TItem actual;
			actual = LogExtensions.Log<TItem>(item);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void LogTest5()
		{
			LogTest5Helper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for Log
		///</summary>
		[TestMethod()]
		public void LogTest6()
		{
			Exception ex = null; // TODO: Initialize to an appropriate value
			Exception expected = null; // TODO: Initialize to an appropriate value
			Exception actual;
			actual = LogExtensions.Log(ex);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Log
		///</summary>
		public void LogTest7Helper<TItem>()
		{
			IEnumerable<TItem> items = null; // TODO: Initialize to an appropriate value
			IEnumerable<TItem> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<TItem> actual;
			actual = LogExtensions.Log<TItem>(items);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void LogTest7()
		{
			LogTest7Helper<GenericParameterHelper>();
		}
	}
}
